<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ page session="false" %>
<html>
<head>
	<title>SYS.DBA_TABLES from Oracle</title>
	<style type="text/css">
		.tg  {border-collapse:collapse;border-spacing:0;border-color:#ccc;}
		.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;}
		.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#f0f0f0;}
		.tg .tg-4eph{background-color:#f9f9f9}
	</style>
</head>
<body>
<h3>SYS.DBA_TABLES List</h3>
<%--<a href="/oracle/sys/">DBA TABLES Filter Function</a>--%>
<c:if test="${!empty listDbaTables008}">
	<table class="tg">
	<tr>
    	<th width="30"></th>
        <th width="50">TABLE_NAME</th>
    	<th width="50">OWNER</th>
        <th width="50">TABLESPACE_NAME</th>
        <th width="50">STATUS</th>
        <th width="50">DEGREE</th>
        <th width="50">INSTANCES</th>
        <th width="50">CACHE</th>
        <th width="50">TABLE_LOCK</th>
        <th width="50">GLOBAL_STATS</th>
        <th width="50">USER_STATS</th>
	</tr>
	<c:forEach items="${listDbaTables008}" var="table" varStatus="status">
    		<tr>
        		<td>${status.index + 1}</td>
                <td>${table.tableName}</td>
        		<td>${table.owner}</td>
                <td>${table.tbspcName}</td>
                <td>${table.status}</td>
                <td>${table.degree}</td>
                <td>${table.instances}</td>
                <td>${table.cache}</td>
                <td>${table.tableLock}</td>
                <td>${table.globalStats}</td>
                <td>${table.userStats}</td>
    			<td><a href="<c:url value='/table/edit/${table.tableName}' />" >Edit</a></td>
    			<td><a href="<c:url value='/table/remove/${table.tableName}' />" >Delete</a></td>
    		</tr>
    	</c:forEach>
	</table>
</c:if>
</body>
</html>